#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <complex.h>
#include <string.h>

#include <gsl/gsl_complex.h>
#include <gsl/gsl_complex_math.h>
#include <gsl/gsl_vector_complex.h>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_errno.h>
#include <gsl/gsl_fft_complex.h>

//int gsl_vector_add (gsl_vector * A, const gsl_vector * B)

int main(void)
{
	int i;
	gsl_vector* vet;
	gsl_vector* let;
	
	vet = gsl_vector_alloc (100);
	let = gsl_vector_alloc (100);
	
	gsl_vector_set_all (vet, 2.5);
	gsl_vector_set_all (let, 3.5);
	
	gsl_vector_add (let, vet);
	
	for ( i = 0 ; i < 100 ; i++ )
	{
		printf("%12.6f\n", gsl_vector_get(let, i));
	}
}

// gcc -lm -lgsl -lgslcblas vetores.c -o vetores.exe
